package com.xmall.order.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmall.order.define.dto.OrderDo;
import com.xmall.order.define.dto.OrderQueryParams;
import com.xmall.order.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xmall
 * @since 2023-11-19
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 详情
     */
    OrderDo info(@Param("id") Long id);

    /**
     * 自定义分页查询
     */
    Page<OrderDo> listPage(@Param("page") Page page, @Param("query") OrderQueryParams query);
}
